package com.ck.ips.dao.store;

import com.ck.common.model.DepartmentStore;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description: 门店部门关系mapper
 * @author: zhanglei
 * @date: 2019/5/9 15:17
 */
public interface DepartmentStoreMapper {

    /**
     * 保存门店部门关系
     */
    void add(DepartmentStore departmentStore);

    /**
     * 修改门店部门关系
     */
    void updateDepartmentByStoreId(DepartmentStore departmentStore);

    /**
     * 根据部门id获取门店id
     * @param departmentIds
     * @return
     */
    List<String> getByDepartmentIds(@Param("departmentIds") List<String> departmentIds);
}
